<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">

            {foreach $menu as $rule}
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="{$rule.name||default=''}">{$rule.ico|raw}</i>
                    <cite>{$rule.name|default=''}</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    {foreach $rule.sub as $child}
                    {if $child.show == true}
                    <li>
                        <a onclick="xadmin.add_tab('{$child.name}','{$child.uri}')">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>{$child.name}</cite></a>
                    </li>
                    {/if}
                    {/foreach}
                </ul>
            </li>
            {/foreach}

        </ul>
    </div>
</div>